package cn.iocoder.yudao.module.xkfz.mapper.excel;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.module.xkfz.domain.excel.entity.AchievementAward;
import cn.iocoder.yudao.module.xkfz.domain.excel.entity.TechnologicalOutputSci;
import cn.iocoder.yudao.module.xkfz.domain.excel.po.AchievementAwardPo;
import org.apache.ibatis.annotations.Mapper;

import java.util.Arrays;
@Mapper
public interface AchievementAwardMapper extends BaseMapperX<AchievementAward> {

    default PageResult<AchievementAward> selectPage (AchievementAwardPo reqPo) {
        return selectPage(reqPo, new LambdaQueryWrapperX<AchievementAward>()
                .likeIfPresent(AchievementAward::getPeriodTime, reqPo.getPeriodTime())
                .eqIfPresent(AchievementAward::getDeptName, reqPo.getDeptName())
                .orderByDesc(Arrays.asList(AchievementAward::getUpdateTime)));
    }
}
